<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
	<div class="wrapper wrapper-content ">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-content">
						<form class="form-horizontal m-t" id="signupForm">
							<div class="form-group">
								<label class="col-sm-3 control-label">分类：</label>
								<div class="col-sm-3">
									<input id="categoryId" name="categoryId" class="form-control" type="hidden" value="1">
                                    <div class="dropdown">
                                        <button class="btn btn-info dropdown-toggle" type="button" id="dropdownMenu1"
                                                data-toggle="dropdown" aria-haspopup="true" aria-expanded="true"
                                                >
                                                请选择分类
                                            <span class=" caret"></span>
                                        </button>
                                        <ul class="dropdown-menu bg-info" style="background-color: #e5ffff;">
                                            <li th:each="category : ${categorys}"><a href="#"  th:onclick="'javascript:catclick(\''+${category.categoryId}+'\', \''+${category.categoryName}+'\');'" th:class="${category.categoryId}">[[${category.categoryName}]]</a>
                                            </li>
                                        </ul>
                                    </div>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">产品编号：</label>
								<div class="col-sm-8">
									<input id="productNum" name="productNum" class="form-control" type="text">
								</div>
							</div>
														<div class="form-group">
								<label class="col-sm-3 control-label">设备名称：</label>
								<div class="col-sm-8">
									<input id="shebeiName" name="shebeiName" class="form-control" type="text">
								</div>
							</div>
														<div class="form-group">
								<label class="col-sm-3 control-label">基本参数：</label>
								<div class="col-sm-8">
									<input id="baseParam" name="baseParam" class="form-control" type="text">
								</div>
							</div>
														<div class="form-group">
								<label class="col-sm-3 control-label">完整参数：</label>
								<div class="col-sm-8">
									<input id="allParam" name="allParam" class="form-control" type="text">
								</div>
							</div>
														<div class="form-group">
								<label class="col-sm-3 control-label">单位：</label>
								<div class="col-sm-8">
									<input id="unit" name="unit" class="form-control" type="text">
								</div>
							</div>
														<div class="form-group">
								<label class="col-sm-3 control-label">面价：</label>
								<div class="col-sm-8">
									<input id="facePrice" name="facePrice" class="form-control" type="text">
								</div>
							</div>
														<div class="form-group">
								<label class="col-sm-3 control-label">材料成本：</label>
								<div class="col-sm-8">
									<input id="chengben" name="chengben" class="form-control" type="text">
								</div>
							</div>
														<div class="form-group">
								<label class="col-sm-3 control-label">机器成本：</label>
								<div class="col-sm-8">
									<input id="shebeiChengben" name="shebeiChengben" class="form-control" type="text">
								</div>
							</div>
														<div class="form-group">
								<label class="col-sm-3 control-label">人工成本：</label>
								<div class="col-sm-8">
									<input id="anzhuangChengben" name="anzhuangChengben" class="form-control" type="text">
								</div>
							</div>
														<div class="form-group">
								<label class="col-sm-3 control-label">二级类别：</label>
								<div class="col-sm-8">
									<input id="level2Cate" name="level2Cate" class="form-control" type="text">
								</div>
							</div>
														<div class="form-group">
								<label class="col-sm-3 control-label">品牌：</label>
								<div class="col-sm-8">
									<input id="brand" name="brand" class="form-control" type="text">
								</div>
							</div>
														<div class="form-group">
								<label class="col-sm-3 control-label">型号：</label>
								<div class="col-sm-8">
									<input id="xinghao" name="xinghao" class="form-control" type="text">
								</div>
							</div>
														<div class="form-group">
								<label class="col-sm-3 control-label">备注：</label>
								<div class="col-sm-8">
									<input id="beizhu" name="beizhu" class="form-control" type="text">
								</div>
							</div>

																					<div class="form-group">
								<div class="col-sm-8 col-sm-offset-3">
									<button id="subform" type="submit" class="btn btn-primary">提交</button>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
	</div>
	</div>
	<div th:include="include::footer"></div>
    <script type="text/javascript">

        function catclick(catId, catName) {
            $("#dropdownMenu1").text(catName);
            $("#categoryId").val(catId);

        }
    </script>
	<script type="text/javascript" src="/js/appjs/system/product/add.js">
	</script>
</body>
</html>
